home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / language / embedded / m68k / cc68k.arc / CGLBDEF.C < prev    next >
C/C++ Source or Header  |  1986-10-26  |  1KB  |  50 lines

  1. #include        "stdio.h"
  2. #include        "c.h"
  3. #include        "expr.h"
  4. #include        "gen.h"
  5. /*
  6.  *    68000 C compiler
  7.  *
  8.  *    Copyright 1984, 1985, 1986 Matthew Brandt.
  9.  *  all commercial rights reserved.
  10.  *
  11.  *    This compiler is intended as an instructive tool for personal use. Any
  12.  *    use for profit without the written consent of the author is prohibited.
  13.  *
  14.  *    This compiler may be distributed freely for non-commercial use as long
  15.  *    as this notice stays intact. Please forward any enhancements or question
  16. s
  17.  *    to:
  18.  *
  19.  *        Matthew Brandt
  20.  *        Box 920337
  21.  *        Norcross, Ga 30092
  22.  */
  23.  
  24. /*      global definitions      */
  25.  
  26. FILE            *input = 0,
  27.                 *list = 0,
  28.                 *output = 0;
  29.  
  30. int             lineno = 0;
  31. int             nextlabel = 0;
  32. int             lastch = 0;
  33. int             lastst = 0;
  34. char            lastid[20] = "";
  35. char            laststr[MAX_STLP1] = "";
  36. long            ival = 0;
  37. double          rval;
  38.  
  39. TABLE           gsyms = {0,0},
  40.                 lsyms = {0,0};
  41. SYM             *lasthead = NULL;
  42. struct slit     *strtab = 0;
  43. int             lc_static = 0;
  44. int             lc_auto = 0;
  45. struct snode    *bodyptr = 0;
  46. int             global_flag = 1;
  47. TABLE           defsyms = {0,0};
  48. int             save_mask = 0;          /* register save mask */
  49.  
  50.